package com.oa.common.enums;

import com.oa.common.interfaces.CodeStatus;

/**
 * @name 公文类型状态的枚举
 * @author Yang
 * @date 2018-07-11
 * @version 1.0.1
 */
public enum AppsTypeStatus implements CodeStatus {

    /** 正常 **/
    ENABLE(0,"正常"),

    /** 停用 **/
    DISABLE(1,"停用")

    ;

    private int code;

    private String message;

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public void setMessage(String message) {
        this.message= message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public void setCode(int code) {
        this.code= code;
    }

    AppsTypeStatus(int code,String message){
        this.code= code;
        this.message= message;
    }
}
